export default {
         //段落
        paragraphs(state)
        {
            return data[state.title]["paragraphs"]
        },
        //赏析
        appreciation(state)
        {
            return data[state.title]["appreciation"]
        },
        //背景
        ackground(state)
        {
            return data[state.title]["background"]
        },
        //单纯翻译
        mergedArray1(state) {
            let translation = data[state.title]["translation"]
            let paragraphs = data[state.title]["paragraphs"]
            return paragraphs.reduce((acc, val, index) => {
                acc.push(val);
                acc.push(translation[index]);
                return acc;
            }, []);
        },
        //单纯注释
        mergedArray2(state) {
            let paragraphs = data[state.title]["paragraphs"]
            let annotate = data[state.title]["annotate"]
            return paragraphs.reduce((acc, val, index) => {
                acc.push(val);
                acc.push(annotate[index]);
                return acc;
            }, []);
        },
        //注释和翻译都有
        mergedArray3(state) {
            let paragraphs = data[state.title]["paragraphs"]
            let translation = data[state.title]["translation"]
            let annotate = data[state.title]["annotate"]
            return paragraphs.reduce((acc, val, index) => {
                acc.push(val);
                acc.push(translation[index]);
                acc.push(annotate[index]);
                return acc;
            }, []);
        }
}